home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / VMS-GCC.MAK < prev    next >
Text File  |  1992-03-25  |  6KB  |  239 lines

  1. $ !    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. $ !    Distributed by Free Software Foundation, Inc.
  3. $ !
  4. $ ! This file is part of Ghostscript.
  5. $ !
  6. $ ! Ghostscript is distributed in the hope that it will be useful, but
  7. $ ! WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. $ ! to anyone for the consequences of using it or for whether it serves any
  9. $ ! particular purpose or works at all, unless he says so in writing.  Refer
  10. $ ! to the Ghostscript General Public License for full details.
  11. $ !
  12. $ ! Everyone is granted permission to copy, modify and redistribute
  13. $ ! Ghostscript, but only under the conditions described in the Ghostscript
  14. $ ! General Public License.  A copy of this license is supposed to have been
  15. $ ! given to you along with Ghostscript so you can know your rights and
  16. $ ! responsibilities.  It should be in a file named COPYING.  Among other
  17. $ ! things, the copyright notice and this notice must be preserved on all
  18. $ ! copies.
  19. $ !
  20. $ !
  21. $ ! "makefile" for Ghostscript, VMS / GNU C / DECwindows (X11) configuration.
  22. $ !
  23. $ !
  24. $ ! Execute this command file while in the GhostScript directory!
  25. $ !
  26. $ !
  27. $ ! To build a debugging configuration, issue the command:
  28. $ !
  29. $ !          $ @VMS-CC.MAK DEBUG
  30. $ !
  31. $ ! Do not  abbreviate "DEBUG".  To specify an alternate directory for
  32. $ ! GS_LIB_DEFAULT, issue the command:
  33. $ !
  34. $ !          $ @VMS-CC.MAK directory
  35. $ !
  36. $ ! with "directory" a fully qualified directory name.  "directory" cannot
  37. $ ! be DEBUG (otherwise it will be confused with the DEBUG switch).  Both
  38. $ ! the DEBUG switch and a directory name may be specified on the same
  39. $ ! command line and in either order.
  40. $ !
  41. $ !
  42. $ CDEF = ""
  43. $ LDEF = ""
  44. $ !
  45. $ GS_INIT = "GS_INIT.PS"
  46. $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
  47. $ IF P1 .NES. "" .AND. P1 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P1
  48. $ IF P2 .NES. "" .AND. P2 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P2
  49. $ !
  50. $ IF P1 .NES. "DEBUG" .AND. P2 .NES. "DEBUG" THEN GOTO NODEBUG
  51. $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
  52. $ LDEF = "/DEBUG"
  53. $ !
  54. $ NODEBUG:
  55. $ !
  56. $ ! Is GNU C about and defined?
  57. $ !
  58. $ IF F$TRNLNM("GNU_CC") .NES. "" THEN GOTO GNU_CC_OKAY
  59. $ WRITE SYS$OUTPUT "GNU_CC logical is undefined.  You must execute the command"
  60. $ WRITE SYS$OUTPUT "file GCC_INSTALL.COM in the GNU CC directory before using"
  61. $ WRITE SYS$OUTPUT "this command file."
  62. $ EXIT
  63. $ !
  64. $ !
  65. $ GNU_CC_OKAY:
  66. $ SET COMMAND GNU_CC:[000000]GCC.CLD
  67. $ !
  68. $ !
  69. $ ! Compile genarch.c and then run it to create the arch.h header file
  70. $ !
  71. $ GCC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
  72. $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  73. SYS$SHARE:VAXCRTL/SHARE
  74. $ GENARCH = "$" + F$ENVIRONMENT("DEFAULT") + "GENARCH.EXE"
  75. $ GENARCH ARCH.H
  76. $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
  77. $ PURGE ARCH.H
  78. $ !
  79. $ !
  80. $ ! Create a minimal gconfig.h and gconfig.ps
  81. $ !
  82. $ CREATE GCONFIG.H
  83. device_(gs_x11_device)
  84. $ !
  85. $ CREATE GCONFIG.PS
  86. %
  87. $ !
  88. $ !
  89. $ ! Create an empty object library
  90. $ !
  91. $ LIBRARY/CREATE GS.OLB
  92. $ !
  93. $ !
  94. $ ! Create a list of modules to compile and store in the object library
  95. $ !
  96. $ CREATE MODULES.LIS
  97. GDEVMEM1
  98. GDEVMEM2
  99. GP_VMS
  100. GSCHAR
  101. GSCHAR0
  102. GSCOLOR
  103. GSCOORD
  104. GSDEVICE
  105. GSDPS1
  106. GSFILE
  107. GSFONT
  108. GSIM2OUT
  109. GSIMAGE
  110. GSLINE
  111. GSMATRIX
  112. GSMISC
  113. GSPAINT
  114. GSPATH
  115. GSPATH2
  116. GSSTATE
  117. GSTDEV
  118. GSTYPE1
  119. GSUTIL
  120. GXCACHE
  121. GXCLIST
  122. GXCOLOR
  123. GXCPATH
  124. GXDITHER
  125. GXDRAW
  126. GXFILL
  127. GXHT
  128. GXPATH
  129. GXPATH2
  130. GXSTROKE
  131. IALLOC
  132. IBNUM
  133. IBSCAN
  134. ICCFONT
  135. IDEBUG
  136. IDICT
  137. IINIT
  138. INAME
  139. INTERP
  140. ISAVE
  141. ISCAN
  142. IUTIL
  143. SFILTER
  144. SFILTER2
  145. STREAM
  146. ZARITH
  147. ZARRAY
  148. ZBSEQ
  149. ZCHAR
  150. ZCOLOR
  151. ZCONTROL
  152. ZDEVICE
  153. ZDICT
  154. ZDPS1
  155. ZFILE
  156. ZFILEIO
  157. ZFILTER
  158. ZFILTER2
  159. ZFONT
  160. ZFONT0
  161. ZFONT1
  162. ZFONT2
  163. ZGENERIC
  164. ZGSTATE
  165. ZHT
  166. ZMATH
  167. ZMATRIX
  168. ZMISC
  169. ZPACKED
  170. ZPAINT
  171. ZPATH
  172. ZPATH2
  173. ZPROPS
  174. ZRELBIT
  175. ZSTACK
  176. ZSTRING
  177. ZTYPE
  178. ZUPATH
  179. ZVMEM
  180. $ !
  181. $ !
  182. $ ! NOW COMPILE AWAY!
  183. $ !
  184. $ OPEN/READ MODULE_LIST MODULES.LIS
  185. $ !
  186. $ COMPILE_LOOP:
  187. $ READ/END=END_COMPILE MODULE_LIST MODULE
  188. $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
  189. $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
  190. $ DELETE 'MODULE'.OBJ.*
  191. $ GOTO COMPILE_LOOP
  192. $ !
  193. $ END_COMPILE:
  194. $ CLOSE MODULE_LIST
  195. $ DELETE MODULES.LIS.*
  196. $ !
  197. $ !
  198. $ ! Is the DECwindows environment about?  Must be installed in order to
  199. $ ! build the executable programs gs.exe, gt.exe, and xlib.exe.
  200. $ !
  201. $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
  202. $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
  203. $ WRITE SYS$OUTPUT "unable to build executable programs."
  204. $ GOTO DONE
  205. $ !
  206. $ CHECK2:
  207. $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
  208. $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
  209. $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
  210. $ GOTO DONE
  211. $ !
  212. $ !
  213. $ BUILD_EXES:
  214. $ !
  215. $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
  216. $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """"""""
  217. $ GCC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C
  218. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON") -
  219.     /OBJECT=GDEVXINI.OBJ GDEVXINI.C
  220. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ -
  221.     GDEVX.C
  222. $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
  223. $ GCC'CDEF/NOLIST/OBJECT=UTRACE.OBJ UTRACE.C
  224. $ !
  225. $ GCC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C
  226. $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,UTRACE,GDEVX,GCONFIG,-
  227.   GS/LIB/INCLUDE=(GDEVMEM1,GDEVMEM2,GXCLIST,-
  228.   ZARITH,ZARRAY,ZBSEQ,ZCHAR,ZCOLOR,ZCONTROL,ZDEVICE,ZDPS1,-
  229.   ZDICT,ZFILE,ZFILEIO,ZFILTER,ZFILTER2,ZFONT,ZFONT0,ZFONT1,ZFONT2,-
  230.   ZGENERIC,ZGSTATE,ZHT,ZMATH,ZMATRIX,ZMISC,ZPACKED,ZPAINT,ZPATH,ZPATH2,-
  231.   ZPROPS,ZRELBIT,ZSTACK,ZSTRING,ZTYPE,ZUPATH,ZVMEM),SYS$INPUT/OPT
  232. SYS$SHARE:DECW$DWTLIBSHR/SHARE
  233. $ !
  234. $ DELETE GDEVX.OBJ.*,GDEVXINI.OBJ.*,GSMAIN.OBJ.*,UTRACE.OBJ.*,GS.OBJ.*,-
  235.          GCONFIG.OBJ.*
  236. $ !
  237. $ DONE:
  238. $ ! ALL DONE
  239.